import request from '@/utils/request'

// 查询感官检验列表
export function listSensory(query) {
  return request({
    url: '/Laboratory/sensory/list',
    method: 'get',
    params: query
  })
}

// 查询感官检验详细
export function getSensory(id) {
  return request({
    url: '/Laboratory/sensory/' + id,
    method: 'get'
  })
}

// 新增感官检验
export function addSensory(data) {
  return request({
    url: '/Laboratory/sensory',
    method: 'post',
    data: data
  })
}

// 修改感官检验
export function updateSensory(data) {
  return request({
    url: '/Laboratory/sensory',
    method: 'put',
    data: data
  })
}

// 审核感官检验
export function verifySensory(data) {
  return request({
    url: '/Laboratory/sensory/verify',
    method: 'put',
    data: data
  })
}


// 删除感官检验
export function delSensory(id) {
  return request({
    url: '/Laboratory/sensory/' + id,
    method: 'delete'
  })
}
